//////////////////////////////////////////////////////////////////////////////////
//	 Copyright 2011 by Yosef Grabivker, ryuho@homenetworksoft.com
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.
//

#ifndef ISP_STATTAB_H_
#define ISP_STATTAB_H_

#include "def.h"
#include "logctrl.h"

class CISPTab: public wxPanel, public IGUIBind, public IGUISupport
{
public:
								CISPTab(class wxWindow* pParent);
	virtual						~CISPTab();
	
	//IGUIBind
	virtual void				OnResponse(const COMMANDRESPONSE& resp);
	virtual void				Reset();

	//IGUISupport
	virtual bool				CanSave()	{ return  false; }
	virtual wxString			Save();

	
protected:
	void						OnTimeRangeChanged(wxCommandEvent& ev);
	DECLARE_EVENT_TABLE()

private:
	void						ParseResponse(const COMMANDRESPONSE& resp);
	void						ProcessResponse();

	void						AddTimeValues(class wxComboBox* pComboBox, class CLevelGraph* pGraph);
	wxBoxSizer*					GraphicHeader(const wxString& strTitle, int id, class CLevelGraph* pGraph );
	
private:
	class CLevelGraph*			m_pLinePing;

	typedef struct tagPINGResult
	{
		wxString strSite;
		float fMin, fAvrg, fMax;
		long lTransm, lRecv;
	}PINGResult;

	//typedef 
};

#endif /*ISP_STATTAB_H_*/
